package com.yuwei.movie

import android.util.SparseArray
import android.view.View
import androidx.recyclerview.widget.RecyclerView

class MovieItemCache constructor(private val recyclerView: RecyclerView): RecyclerView.ViewCacheExtension() {


    //使用稀疏数组来实现
    private val cacheViews = SparseArray<RecyclerView.ViewHolder>()



    override fun getViewForPositionAndType(recycler: RecyclerView.Recycler, position: Int, type: Int): View? {

        return null
    }


}